{include file="index/head" /}
<div class="box">
	<div class="box-head">
		<h3><a href="{:url('add',['nid'=>$nid])}" class="btn"><i class="icon-plus-square-o"></i>添加模板</a></h3> 
	</div>
	<ul class="tplList">
		{volist name="list" id="v"}
		<li {if condition="$v.status eq 1"}class="on"{/if}>
			<div class="pic">
				<span class="tag">{if condition="$v.type eq 1"}电脑版{else}手机版{/if}</span>
				<img src="{$v.img|default='/static/index/tpl.jpg'}" alt="{$v.title}">				
				<div class="opt">
					{if condition="$v.status eq 2"}<a href="{:url('optStatus',['type'=>$v.type,'id'=>$v.id])}" class="btn icon-check">启用</a>{/if}
					<a href="{:url('add',['id'=>$v.id])}" class="btn">编辑</a>
					<a href="{:url('fileindex',['id'=>$v.id])}" class="btn">模板文件</a>
					{if condition="$v.status eq 2"}<a href="javascript:void(0)" onclick="sycms.del('{:url('del',['id'=>$v.id])}')" class="btn red">删除</a>{/if}
				</div>				
			</div>	
			<h3><b>{$v.entitle}</b> {$v.title} <i class="icon-check"></i></h3>
			<p class="tag"></p>
		</li>		
		{/volist}
	</ul>	
</div>
